package com.demo.personalaccountingbackend.dto;

import lombok.Data;

/**
 * 类描述信息
 *
 * @author zgx
 * @version 1.0
 * @date 2025/10/20 15:02
 */
@Data
public class TokenDTO {
    private String accessToken;
    private String refreshToken;
    private String tokenType = "Bearer";
    private Long expiresIn;
    private Long refreshExpiresIn;

    public TokenDTO(String accessToken, String refreshToken, Long expiresIn, Long refreshExpiresIn) {
        this.accessToken = accessToken;
        this.refreshToken = refreshToken;
        this.expiresIn = expiresIn;
        this.refreshExpiresIn = refreshExpiresIn;
    }
}
